package com.xkcoding.json.util;

import lombok.experimental.UtilityClass;

/**
 * <p>
 * 字符串工具类
 * </p>
 *
 * @date Created in 2021-01-20 18:21
 */
@UtilityClass
public class StringUtil {

    public boolean isEmpty(String str) {
        return null == str || str.trim().isEmpty();
    }

    public boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }
}
